﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MngDownloadEnable.aspx.cs"
    Inherits="LDSP.UI.Admin.MngDownloadEnable" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link type="text/css" href="../../Styles/bg.css" rel="Stylesheet" />
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../../Scripts/jqex.js"></script>
    <script type="text/javascript" src="../../Scripts/Common.js"></script>
    <script type="text/javascript" src="../../Scripts/calendar.js"></script>
    <title>企业下载管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="mngTitle">
            <span class="mngEmphasis">企业下载管理</span>
        </div>
        <fieldset>
            <legend>查询</legend>
            <table id="filterArea" class="mngDetail">
                <tr>
                    <td class="itemLabel">
                        企业名称：
                    </td>
                    <td class="itemValueFix">
                        <asp:TextBox ID="txt_code" runat="server" CssClass="itemCtrl"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                        当前下载次数：<asp:DropDownList ID="ddl_op" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td class="itemValue">
                        <asp:TextBox ID="txt_downloadTimes" runat="server" CssClass="itemCtrl"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                        累计下载次数：<asp:DropDownList ID="ddl_op_total" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td class="itemValue">
                        <asp:TextBox ID="txt_totalDownloadTimes" runat="server" CssClass="itemCtrl"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="itemLabel">
                    </td>
                    <td class="itemValue">
                        <asp:DropDownList ID="ddl_pageSize" runat="server" OnSelectedIndexChanged="ddl_pageSize_SelectedIndexChanged">
                        </asp:DropDownList>
                        <asp:Button ID="btn_search" runat="server" Text="搜索" OnClick="btn_search_Click" CssClass="mngBtn" />&nbsp;
                        <input type="button" value="重置" onclick="resetFilterCondition('filterArea')" class="mngBtn" />
                    </td>
                </tr>
            </table>
        </fieldset>
        <div>
            累计下载次数：<span class="mngEmphasis"><asp:Label ID="lbl_times" runat="server" Text=""></asp:Label></span>
        </div>
        <div class="mngList">
            <div class="mngList">
                <asp:Button ID="btn_reset" runat="server" Style="width: 100px" Text="重置下载统计" OnClientClick="return confirm('您确认要重置么？')"
                    OnClick="btn_reset_Click" CssClass="mngBtn" /></div>
            <asp:GridView ID="grd_list" runat="server" AutoGenerateColumns="False" EmptyDataText="当前没有查到任何数据！"
                DataKeyNames="id" OnRowCommand="grd_list_RowCommand" OnRowDataBound="grd_list_RowDataBound"
                BackColor="#666699" BorderColor="#999999" AllowPaging="true" AllowSorting="true"
                CellPadding="3" GridLines="Vertical" Width="100%" OnPageIndexChanging="grd_list_PageIndexChanging"
                OnSorting="grd_list_Sorting">
                <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                <RowStyle BackColor="#EEEEEE" ForeColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                <EmptyDataRowStyle BorderStyle="None" BorderWidth="0px" Font-Bold="True" Font-Size="16pt"
                    ForeColor="white" />
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="chb_selectAll" runat="server" onclick="selectAll(this,'grd_list')" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chb" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" Width="40px" />
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="序号" ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                        <ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
                    </asp:BoundField>
                    <asp:BoundField DataField="code" HeaderText="企业名称" SortExpression="code" ItemStyle-Width="150px">
                    </asp:BoundField>
                    <asp:BoundField DataField="DownloadTimes" HeaderText="当前下载次数" SortExpression="DownloadTimes"
                        ItemStyle-Width="100px">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="TotalDownloadTimes" HeaderText="累计下载次数" SortExpression="TotalDownloadTimes"
                        ItemStyle-Width="100px">
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="comment" HeaderText="备注" SortExpression="comment"></asp:BoundField>
                </Columns>
                <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
                <HeaderStyle CssClass="gridlisthead" ForeColor="White" />
                <AlternatingRowStyle BackColor="#DCDCDC" />
            </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
